{% load thumbnail i18n %}

<li class="{% if item.submit_date > last_comments_read %}new{% endif %}">
    <footer class="comment-meta">
        <a href="{{ item.user.get_absolute_url }}" rel="external nofollow" title="{{ item.user }}">
            <img alt="{{ item.user }}" src="{{ item.user.avatar }}" class="avatar">
        </a>
        <div class="comment-meta">
            <span class="comment-author vcard">
                <cite title="{{ item.user.get_absolute_url }}"><a href="{{ item.user.get_absolute_url }}" title="{{ item.user }}" class="url" rel="external nofollow">{{ item.user }}</a></cite>
            </span>
            <time class="published" datetime="{{ item.submit_date|date:'DATETIME_FORMAT' }}">{{ item.submit_date|date:'DATE_FORMAT' }}</time>
            | <a class="permalink" href="{{ item.reply_to.get_absolute_url }}">{% trans 'Permalink' %}</a>
            {% if user.is_staff and perms.comments.delete_comment %}
                | <a href="{% url 'admin:comments_comment_delete' item.pk %}" target="blank" class="permalink">
                    {% trans 'Delete' %}
                </a>
            {% endif %}
            {% if user.is_staff and perms.comments.change_comment %}
                | <a href="{% url 'admin:comments_comment_change' item.pk %}" target="blank" class="permalink">
                    {% trans 'Edit' %}
                </a>
            {% endif %}
        </div>
    </footer>
    <div class="text">
        {% if item.reply_to %}
            <p class="replied well">
                <a href="{{ item.reply_to.get_absolute_url }}">{% trans 'answer to' %} {{ item.reply_to.user }}</a>
                <br/>
                {{ item.reply_to.content|linebreaksbr }}
            </p>
        {% endif %}
        <p>{{ item.content|linebreaksbr }}</p>
    </div>
</li>